package com.zhentao.controller;

import com.zhentao.model.common.app.dto.LikeDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ApLikesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/likes")
@Api(tags = "app端：点赞接口")
public class ApLikeController {

    @Autowired
    private ApLikesService apLikesService;


    /**
     * app端:点在操作
     * @param dto
     * @return
     */
    @PostMapping("/thumbs")
    @ApiOperation("点赞")
    private ResponseResult thumbs(@RequestBody LikeDto dto){
        return apLikesService.thumbs(dto);
    }
}
